package Chapter04;

import java.util.Scanner;

public class zuoye7 {
    //7.输入10个数，求他们所有数的和
    public static void main(String[] args) {
        System.out.println("请输入10个数:");
        Scanner input =new Scanner(System.in);
        int num =input.nextInt();
        int sum=0;
        for (int i=1;i<=3;i++){
            sum+=num;
        }
        System.out.println("输入数字的和为:"+sum);
    }
}
